package com.nnnu.wsnackshop.pojo.vo;

import com.nnnu.wsnackshop.pojo.entity.Members;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 微信登录VO
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WechatLoginVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private String token;
    private Members userInfo;

    /**
     * 新人优惠券列表，首次登录时返回
     */
    @Builder.Default
    private List<CouponVO> newUserCoupons = new ArrayList<>();
}